/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * POS_CheckoutCard.java
 *
 * Created on Apr 4, 2011, 6:43:27 PM
 */

package POS_Source;

import POS_Controller.POSController;

/**
 * this method renders the checkout by card view 
 * @author edaype
 * @see POS_Source
 */
public class POS_CheckoutCard_1 extends javax.swing.JPanel {

    private POSController controller;
   /**
    * constructor for this class
    * @param control
    */
    public POS_CheckoutCard_1(POSController control) {
        controller = control;
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        TitlePanel = new javax.swing.JPanel();
        TitleLabel = new javax.swing.JLabel();
        CancelButton = new javax.swing.JButton();
        MainPanel = new javax.swing.JPanel();
        SwipeLabel = new javax.swing.JLabel();
        WaitingLabel = new javax.swing.JLabel();
        DuePanel = new javax.swing.JPanel();
        MoneyDueLabel = new javax.swing.JLabel();
        DueLabel = new javax.swing.JLabel();
        CashButton = new javax.swing.JButton();
        CardButton = new javax.swing.JButton();
        PaidPanel = new javax.swing.JPanel();
        MoneyPaidLabel = new javax.swing.JLabel();
        PaidLabel = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));

        TitlePanel.setBackground(new java.awt.Color(255, 255, 255));

        TitleLabel.setFont(new java.awt.Font("Copperplate Gothic Bold", 2, 60));
        TitleLabel.setText("Payment");

        CancelButton.setBackground(new java.awt.Color(255, 255, 255));
        CancelButton.setFont(new java.awt.Font("Tahoma", 0, 24));
        CancelButton.setText("Cancel");

        javax.swing.GroupLayout TitlePanelLayout = new javax.swing.GroupLayout(TitlePanel);
        TitlePanel.setLayout(TitlePanelLayout);
        TitlePanelLayout.setHorizontalGroup(
            TitlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(TitlePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(TitleLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 438, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 197, Short.MAX_VALUE)
                .addComponent(CancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        TitlePanelLayout.setVerticalGroup(
            TitlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, TitlePanelLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(TitlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(CancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(TitleLabel))
                .addContainerGap())
        );

        MainPanel.setBackground(new java.awt.Color(255, 255, 255));
        MainPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        SwipeLabel.setFont(new java.awt.Font("Tahoma", 0, 36));
        SwipeLabel.setText("Swipe Card At Terminal");

        WaitingLabel.setFont(new java.awt.Font("Tahoma", 2, 24));
        WaitingLabel.setText("Waiting For Response...");

        DuePanel.setBackground(new java.awt.Color(255, 255, 255));

        MoneyDueLabel.setFont(new java.awt.Font("Tahoma", 0, 24));

        DueLabel.setFont(new java.awt.Font("Tahoma", 0, 24));
        DueLabel.setText("Amount Due");

        javax.swing.GroupLayout DuePanelLayout = new javax.swing.GroupLayout(DuePanel);
        DuePanel.setLayout(DuePanelLayout);
        DuePanelLayout.setHorizontalGroup(
            DuePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(DuePanelLayout.createSequentialGroup()
                .addContainerGap(31, Short.MAX_VALUE)
                .addComponent(DueLabel)
                .addContainerGap())
            .addGroup(DuePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(MoneyDueLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        DuePanelLayout.setVerticalGroup(
            DuePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(DuePanelLayout.createSequentialGroup()
                .addComponent(DueLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(MoneyDueLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)
                .addContainerGap())
        );

        CashButton.setBackground(new java.awt.Color(255, 255, 255));
        CashButton.setFont(new java.awt.Font("Tahoma", 0, 24));
        CashButton.setText("Pay by Cash");

        CardButton.setBackground(new java.awt.Color(255, 255, 255));
        CardButton.setFont(new java.awt.Font("Tahoma", 0, 24));
        CardButton.setText("Pay by Card");

        PaidPanel.setBackground(new java.awt.Color(255, 255, 255));

        MoneyPaidLabel.setFont(new java.awt.Font("Tahoma", 0, 24));

        PaidLabel.setFont(new java.awt.Font("Tahoma", 0, 24));
        PaidLabel.setText("Amount Paid");

        javax.swing.GroupLayout PaidPanelLayout = new javax.swing.GroupLayout(PaidPanel);
        PaidPanel.setLayout(PaidPanelLayout);
        PaidPanelLayout.setHorizontalGroup(
            PaidPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PaidPanelLayout.createSequentialGroup()
                .addContainerGap(29, Short.MAX_VALUE)
                .addComponent(PaidLabel)
                .addContainerGap())
            .addGroup(PaidPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(MoneyPaidLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        PaidPanelLayout.setVerticalGroup(
            PaidPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PaidPanelLayout.createSequentialGroup()
                .addComponent(PaidLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(MoneyPaidLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 20, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout MainPanelLayout = new javax.swing.GroupLayout(MainPanel);
        MainPanel.setLayout(MainPanelLayout);
        MainPanelLayout.setHorizontalGroup(
            MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MainPanelLayout.createSequentialGroup()
                .addGroup(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(MainPanelLayout.createSequentialGroup()
                        .addGap(270, 270, 270)
                        .addComponent(WaitingLabel))
                    .addGroup(MainPanelLayout.createSequentialGroup()
                        .addGap(200, 200, 200)
                        .addGroup(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(SwipeLabel)
                            .addGroup(MainPanelLayout.createSequentialGroup()
                                .addComponent(PaidPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(DuePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(216, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MainPanelLayout.createSequentialGroup()
                .addContainerGap(191, Short.MAX_VALUE)
                .addComponent(CashButton, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(CardButton, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(189, 189, 189))
        );
        MainPanelLayout.setVerticalGroup(
            MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MainPanelLayout.createSequentialGroup()
                .addGap(41, 41, 41)
                .addComponent(SwipeLabel)
                .addGap(44, 44, 44)
                .addComponent(WaitingLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)
                .addGroup(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(PaidPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(DuePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(53, 53, 53)
                .addGroup(MainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(CashButton, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(CardButton, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(82, 82, 82))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(MainPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(TitlePanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(MainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(TitlePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton CancelButton;
    private javax.swing.JButton CardButton;
    private javax.swing.JButton CashButton;
    private javax.swing.JLabel DueLabel;
    private javax.swing.JPanel DuePanel;
    private javax.swing.JLabel IntroducedLabel2;
    private javax.swing.JPanel IntroducedPanel2;
    private javax.swing.JPanel MainPanel;
    private javax.swing.JLabel MoneyDueLabel;
    private javax.swing.JLabel MoneyLabel3;
    private javax.swing.JLabel MoneyPaidLabel;
    private javax.swing.JLabel PaidLabel;
    private javax.swing.JPanel PaidPanel;
    private javax.swing.JLabel SwipeLabel;
    private javax.swing.JLabel TitleLabel;
    private javax.swing.JPanel TitlePanel;
    private javax.swing.JLabel WaitingLabel;
    // End of variables declaration//GEN-END:variables

}
